<?php
/*
***平台客服	
*/
defined('BY_JYA') or exit('Access Denied');
global $_RQ,$_AR;
$_RQ['op']=$_RQ['op']?$_RQ['op']:'main';
$return['basic']=$this->plugin_setting('basic');
$return['ischecklogin']=cfc('core')->checklogin('','',true);
$this->model('member')->upmember();
if($_RQ['op']=='main'){
	set_html('title','专属顾问');

    $member=pdo_get('core_members',array('id'=>$_SESSION['uid'],'uniacid'=>$_SESSION['uniacid']),array('id','credit1','credit2','credit3','credit5','mobile','groupid','avatar','nickname'));
	if(!$member){
		//exi('找不到会员信息！','error');
	}
	$this->model('model')->checklogin();	
	$user=pdo_get('jy_aixiaoyi_member',array('mid'=>$_SESSION['uid'],'uniacid'=>$_SESSION['uniacid']));
	$member['avatar']=tomedia($member['avatar']);
	$return['member']=$member;
	$return['kefu_image']=tomedia($return['basic']['kefu_image']);
	$return['user']=$user;
	$return['item']=array();
	exi($return);
}
